import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service

class OpenWeb:
    def open_web_login(self):
        service = Service("chromedriver.exe")
        driver = webdriver.Chrome(service=service)
        driver.implicitly_wait(10)
        driver.maximize_window()
        driver.get("http://localhost:90/")
        time.sleep(1)
        return driver
    def open_web_register(self):
        service = Service("chromedriver.exe")
        driver = webdriver.Chrome(service=service)
        driver.implicitly_wait(10)
        driver.maximize_window()
        driver.get("http://localhost:90/toregister.html")
        time.sleep(1)
        return driver